<template>
	<view class="customInput-container">
		<uv-input @confirm="confirm"  prefixIcon="search" v-model="keyword" shape="circle" placeholder="请输入内容" border="surround">
			<template v-slot:suffix> 
			 <view @click="confirm" class="search flex flex-justify-center flex-items-center">搜索</view> 
			</template>
		</uv-input>
	</view>
</template>

<script setup>
	const model = defineModel();
	let keyword = ref("");
	const emit = defineEmits(['confirm']);
	function confirm(){ 
		  emit('confirm',keyword.value)
	}
</script>

<style lang="scss" scoped>
	@import './index.scss';
</style>